﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductDetail.ascx.cs"
    Inherits="UIListProducts.ProductDetail" %>

<script type="text/javascript" src='<%=ParentLoad.ControlPath+"/Static/fancybox/jquery.fancybox-1.3.4.pack.js" %>'></script>

<script type="text/javascript" src='<%=ParentLoad.ControlPath+"/Static/fancybox/jquery.easing-1.3.pack.js" %>'></script>

<script type="text/javascript" src='<%=ParentLoad.ControlPath+"/Static/fancybox/jquery.mousewheel-3.0.4.pack.js" %>'></script>

<script type="text/javascript">
            $(document).ready(function() {


                $("a#funcyalbum").fancybox({
                    'titlePosition': 'over',
                    'overlayColor': '#000',
                    'overlayOpacity': 0.9
                });

                /* Apply fancybox to multiple items */

                $("a[rel=album]").fancybox({
                    'overlayColor': '#000',
                    'titlePosition': 'over',
                    'overlayOpacity': 0.9
                });

            });

</script>

<style type="text/css">
    </style>
<link rel="stylesheet" href='<%=ParentLoad.ControlPath+"/Static/fancybox/jquery.fancybox-1.3.4.css"%>'
    type="text/css" media="screen" />
<div class="product-detail">
    <div class="img-product-detail">
        <asp:Image ID="prImg" runat="server" />
    </div>
    <div class="product-detail-info">
        <div id="txtTitle" runat="server" class="pr-dt-name">
        </div>
        <div id="txtDescript" runat="server" class="pr-dt-des">
        </div>
        <div class="pr-dt-gia" runat="server" id="txtPrice">
        </div>
    </div>
    <div class="pr-dt-img-cn">
        <asp:Repeater runat="server" ID="rptImgProduct">
            <ItemTemplate>
                <div style="float: left; padding: 2px 5px 2px 5px; height: auto;">
                    <a class="img_album" rel="album" href='<%#ParentLoad.GetWebImgOf(IB.Common.Base.LocationImage.Product,Eval("FileName").ToString())%>'>
                        <img src='<%#ParentLoad.GetWebImageOfThumb(IB.Common.Base.LocationImage.Product,Eval("FileName").ToString())%>'
                            alt="" width="200px;" />
                    </a>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <div class="clear">
    </div>
</div>
<div class="pr-dt-dt">
    <div class="pr-dt-name-2" runat="server" id="txtTitleCt">
    </div>
    <div id="txt_content" runat="server" class="pr-dt-des-2">
    </div>
</div>
<div class="pr-dt-dt">
    <div class="pr-dt-name-2">
        Sản phẩm khác</div>
    <div class="news" style="float:left;">
        <asp:Repeater runat="server" ID="rptNewer">
            <ItemTemplate>
                <div class="news-one">
                    <a href='<%#ParentLoad.WriteUrl(ParentLoad.TabForward.ToString(),"detailproduct",Eval("productID").ToString(),Eval("Title").ToString()) %>' title='<%#Eval("ShortContent") %>'>
                        <img src='<%#ParentLoad.GetWebImageOfThumb(IB.Common.Base.LocationImage.Product,Eval("ImageName").ToString()) %>'
                            alt='<%#Eval("Title") %>' class="img_product" />
                        <div class="h4">
                            <%#Eval("Title")%>
                        </div>
                        <div class="h5">
                            Giá :<%#int.Parse(Eval("Price").ToString()) == 0 ? ParentLoad.NoPrice : int.Parse(Eval("Price").ToString()).ToString("##,###,###") + ",000 VND"%>
                        </div>
                    </a>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Repeater runat="server" ID="rptOlder">
            <ItemTemplate>
                <div class="news-one">
                    <a href='<%#ParentLoad.WriteUrl(ParentLoad.TabForward.ToString(),"detailproduct",Eval("productID").ToString(),Eval("Title").ToString()) %>' title='<%#Eval("ShortContent") %>'>
                        <img src='<%#ParentLoad.GetWebImageOfThumb(IB.Common.Base.LocationImage.Product,Eval("ImageName").ToString()) %>'
                            alt='<%#Eval("Title") %>' class="img_product" />
                        <div class="h4">
                            <%#Eval("Title")%>
                        </div>
                        <div class="h5">
                            Giá :<%#int.Parse(Eval("Price").ToString()) == 0 ? ParentLoad.NoPrice : int.Parse(Eval("Price").ToString()).ToString("##,###,###") + ",000 VND"%>
                        </div>
                    </a>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</div>
